package com.igeek.web;

import com.igeek.domain.Category;
import com.igeek.service.CategoryService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author jerry
 */
@Api(tags="跳转到后台对应页面")
@Controller
public class AdminPageController {
    @Autowired
    private CategoryService categoryService;
    @GetMapping("/admin")
    public String adminPage(){
        return "redirect:admin_category_list";
    }

    @GetMapping("/admin_category_list")
    public String categoryList(){
        return "/admin/listCategory";
    }

    /*跳转编辑页面*/
    @GetMapping("/admin_category_edit")
    public String categoryEdit(){
        return "/admin/editCategory";
    }

    /*跳转属性管理页面*/
    @GetMapping("/admin_property_list")
    public String propergyList(){
        return "/admin/listProperty";
    }

    /*跳转产品管理页面*/
    @GetMapping("/admin_product_list")
    public String productList(){
        return "/admin/listProduct";
    }

    /*跳转到订单管理*/
    @GetMapping("/admin_order_list")
    public String admin_order_list(){
        return "/admin/listOrder";
    }
}
